package com.ibix.print;


import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 项目名称：YiDianCan
 * <br>类描述：打印数据
 * <br>创建人：htliu
 * <br>创建时间：2018/2/5 10:29
 * <br>修改人:
 * <br>修改时间：2018/2/5 10:29
 * <br>修改备注：
 *
 * @author htliu
 * @date 2018/2/5 10:29
 */
@Data
@Accessors(fluent = true)
public class PrintBean implements Serializable{

    private static final long serialVersionUID = -4310743992204897782L;
    public List<Item> itemList = new ArrayList<>();
    private String printName;
    private int extraHeight;
    private long id;

    @Data
    @Accessors(fluent = true)
    public static class Item implements Serializable{
        private static final long serialVersionUID = 5942007465967977433L;
        private int x;
        private int y;
        private String content;
        private int font;

        public Item(int x, int y, String content, int font) {
            this.x = x;
            this.y = y;
            this.content = content;
            this.font = font;
        }
    }

}
